package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketScheduler;

import cn.taoticket.fallback.TaoticketSchedulerClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-scheduler-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketSchedulerClientFallBack.class)
public interface RestTaoticketSchedulerClient {
@RequestMapping(value = "/getTaoticketSchedulerById",method = RequestMethod.POST)
public TaoticketScheduler getTaoticketSchedulerById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketSchedulerListByMap",method = RequestMethod.POST)
public List<TaoticketScheduler>	getTaoticketSchedulerListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketSchedulerCountByMap",method = RequestMethod.POST)
public Integer getTaoticketSchedulerCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketScheduler",method = RequestMethod.POST)
public Integer qdtxAddTaoticketScheduler(@RequestBody TaoticketScheduler taoticketScheduler)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketScheduler",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketScheduler(@RequestBody TaoticketScheduler taoticketScheduler)throws Exception;
}

